<script setup lang="ts">
	import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
	import { getCurrentInstance } from "vue";
	import { initializeWebSocket } from "@/util/websocket";
	const instance = getCurrentInstance()?.appContext.config.globalProperties;
	import { WebRtcConfig } from "@/api/SystemApi";

	onLaunch(async (option : any) => {
		WebRtcConfig()

		if (uni.getStorageSync("userInfo")) {
			initializeWebSocket();


		}
	});
	onShow(() => { });
	onHide(() => {
		console.log("App Hide");
	});
</script>
<style lang="scss">
	/* #ifndef APP-PLUS-NVUE */
	@import "uview-plus/index.scss";
	@import "@/static/scss/public.scss";

	.u-modal__button-group__wrapper--confirm {
		.u-modal__button-group__wrapper__text {
			color: #E89848 !important;
		}
	}

	.u-toolbar__wrapper__confirm {
		color: #E89848 !important;
	}

	.container {
		padding: 15px;
	}

	button {
		margin-bottom: 15px;
	}

	uni-modal {
		z-index: 999999 !important;
	}

	.rotate {
		transform: rotate(-180deg);

		span {
			font-size: 18px;
			opacity: 0.6;
		}
	}

	.notDisturb {
		span {
			font-size: 16px;
			margin-left: 6px;
			opacity: 0.6;


		}
	}

	/* #endif */
</style>